package com.superzqb.asus.Api;

import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.CampusEnterpriseListBean;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.CampusGoodsDetailBeanA;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.CampusGoodsOderBean;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.CampusShopAllBean;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.ImgUrlBean;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Bean.ShopNameBean;
import com.superzqb.asus.superzqbFragment.superzqbJobShop.Shop.Bean.CommentBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by asus on 2017/1/21.
 */

public interface CampusShopApi {
    /*获取企业兼职列表*/
    @GET(ApiParam.getEnterpriseList)
    Call< List<CampusEnterpriseListBean>> getEnterpriseList(
            @Query("page")  int page
    );
    /*获取小店信息*/
    @GET(ApiParam.getShopName)
    Call<ShopNameBean> getShopName(
            @Query("uid") String uid
    );

    /*获取商品信息*/
    @GET(ApiParam.getGoodsInfo)
    Call<List<CampusShopAllBean>> getGoodsInfo(
            @Query("page") int page
    );

    //获取分类的商品信息
    @GET(ApiParam.getGoodsTypeInfo)
    Call<List<CampusShopAllBean>> getGoodsTypeInfo(
            @Query("page") int page,
            @Query("tid") int tid
    );
    //获取评论列表
    @GET(ApiParam.getCommentList)
    Call<List<CommentBean>> getCommentList(
            @Query("page") int page,
            @Query("gid") int gid
    );
    //获取轮播图
    @GET(ApiParam.getImgUrl)
    Call<List<ImgUrlBean>> getImgUrl(
            @Query("gid") int gid
    );
    /*修改浏览量*/
    @GET(ApiParam.changeHint)
    Call<String> changeHint(
            @Query("id") int id
    );
    /*获取全部信息*/
    @GET(ApiParam.getGoodsDetailInfo)
    Call<CampusGoodsDetailBeanA> getGoodsDetailInfo(
            @Query("gid") int id
    );
    /*获取全部信息*/
    @GET(ApiParam.subGoodsOrder)
    Call<CampusGoodsOderBean> subGoodsOrder(
            @Query("gid") int id,
            @Query("uid") int uid,
            @Query("aType") int aType,
            @Query("bType") int bType
    );
}
